package com.atung.parking.request.save;

import com.atung.parking.request.OrderEntityRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @author Administrator
 */
@Data
public class SaveOrUpdatePackageOrderRequest extends OrderEntityRequest {

    @ApiModelProperty("套餐编号")
    @NotNull(message = "套餐编号不能为空")
    private Long parkingPackageId;
    @ApiModelProperty("使用时间")
    @NotNull(message = "使用时间不能为空")
    @Pattern(regexp = "^\\d{4}-\\d{2}-\\d{2}$", message = "日期格式必须为YYYY-MM-DD")
    private String packageUseDate;
}
